﻿namespace 小说爬取
{
    /// <summary>
    /// 小说同步解析接口
    /// </summary>
    public interface IChapterParse : IFictionInfi
    {
        /// <summary>
        /// 解析章节列表
        /// </summary>
        /// <param name="err"></param>
        /// <returns></returns>
        bool Parse(out string err);

        /// 下载小说
        /// </summary>
        /// <param name="num">并发数量</param>
        /// <param name="err">错误原因</param>
        /// <returns></returns>
        bool Download(int num, out string err);

        /// <summary>
        /// 写出小说
        /// </summary>
        /// <param name="num"></param>
        /// <param name="err"></param>
        /// <returns></returns>
        bool Write(string path, out string err);
    }
}